"""
    反序列化：json转python
"""
import yaml

with open("data.json", encoding="UTF-8") as f:
    s_json = f.read()
    print(s_json)
# 从文件读取出来的都是字符串类型
# 字符串转json
d_json = yaml.safe_load(s_json)
print(d_json)
print(type(d_json))  # <class 'dict'>
